#! usr/bin/python3
#! coding: utf-8
def triangles(row):
    s = [1]
    n = 0
    while n < row:
        x = 0
        if n < 1:
            while x < row:
                print('  ',end='')
                x = x+1
            yield s
        else:
            t = s
            s = [1,1]
            a = 1
            while a < n:
                s.insert(a,t[a-1]+t[a])
                a = a + 1
            while x < row - n:
                print('  ',end='')
                x = x + 1
            yield s
        n = n +1 



g = triangles(6)

for x in g:
    print(x)